package com.base.jdk8.stream;

import java.util.stream.Stream;

/**
 * 创建不同类型的流
 *
 * @author: May
 * @date 2020/6/10
 */
public class MakeStream {
    public static void main(String[] args) {
        valueStream();
    }

    /** 创建值流 */
    public static void valueStream() {
        Stream<String> stream = Stream.of("beijing", "shanghai", "tianjing");
        stream.map(String::toUpperCase).forEach(System.out::println);
    }
}
